<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Archi-Strasbourg: Référence de la classe Securimage</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Archi-Strasbourg
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Liste&#160;des&#160;classes</span></a></li>
      <li><a href="classes.html"><span>Index&#160;des&#160;classes</span></a></li>
      <li><a href="hierarchy.html"><span>Hiérarchie&#160;des&#160;classes</span></a></li>
      <li><a href="functions.html"><span>Membres&#160;de&#160;classe</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Fonctions membres publiques</a> &#124;
<a href="#pub-attribs">Attributs publics</a> &#124;
<a href="classSecurimage-members.html">Liste de tous les membres</a>  </div>
  <div class="headertitle">
<div class="title">Référence de la classe Securimage</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Fonctions membres publiques</h2></td></tr>
<tr class="memitem:a26696161d9ab41868ff467b6094b5caf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a26696161d9ab41868ff467b6094b5caf">Securimage</a> ()</td></tr>
<tr class="memitem:aa6dae8239cdc1b89d759328a57df1856"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#aa6dae8239cdc1b89d759328a57df1856">show</a> ($background_image=&quot;&quot;)</td></tr>
<tr class="memitem:a0e4b6929fa43ef1495fe6b42c7c25ae3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a0e4b6929fa43ef1495fe6b42c7c25ae3">check</a> ($code)</td></tr>
<tr class="memitem:a97e362cc5282ac6e8897ef78f4b5a2e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a97e362cc5282ac6e8897ef78f4b5a2e6">doImage</a> ()</td></tr>
<tr class="memitem:aa1abceac31670832bf7b7ab9b5cc9036"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#aa1abceac31670832bf7b7ab9b5cc9036">setBackground</a> ()</td></tr>
<tr class="memitem:a2f49c277da294dd0feefb5b8b3a97d98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a2f49c277da294dd0feefb5b8b3a97d98">arcLines</a> ()</td></tr>
<tr class="memitem:a1279e86e3147d9a92e62552afcec4e29"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a1279e86e3147d9a92e62552afcec4e29">drawLines</a> ()</td></tr>
<tr class="memitem:a6c524695439f090ea5d109572758e479"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a6c524695439f090ea5d109572758e479">drawWord</a> ()</td></tr>
<tr class="memitem:a7d65189ba8813cd3f70fb416237ef9ce"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a7d65189ba8813cd3f70fb416237ef9ce">createCode</a> ()</td></tr>
<tr class="memitem:aca29342599bff682e3443d9962bc1c88"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#aca29342599bff682e3443d9962bc1c88">generateCode</a> ($len)</td></tr>
<tr class="memitem:adcb12830062e28866440d209ac75e6b7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#adcb12830062e28866440d209ac75e6b7">readCodeFromFile</a> ()</td></tr>
<tr class="memitem:a1c8db8daebf9d782cd31b683327e5ef5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a1c8db8daebf9d782cd31b683327e5ef5">output</a> ()</td></tr>
<tr class="memitem:a8da371c4a8a8d6e1b44da63185dea647"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a8da371c4a8a8d6e1b44da63185dea647">getAudibleCode</a> ()</td></tr>
<tr class="memitem:a115fe97ec9c75f3b8e0d851725b6e86f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a115fe97ec9c75f3b8e0d851725b6e86f">saveData</a> ()</td></tr>
<tr class="memitem:a0a8197bffb3ecf71f8a97cb990da5e25"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#a0a8197bffb3ecf71f8a97cb990da5e25">validate</a> ()</td></tr>
<tr class="memitem:aeaba9b8861e4e83e7fec9a384ec38f68"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#aeaba9b8861e4e83e7fec9a384ec38f68">getCode</a> ()</td></tr>
<tr class="memitem:ac171beeb6714ff77a878d174177ab7a0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#ac171beeb6714ff77a878d174177ab7a0">checkCode</a> ()</td></tr>
<tr class="memitem:ad0b09cea893382c8a487f71c288eb982"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSecurimage.html#ad0b09cea893382c8a487f71c288eb982">generateWAV</a> ($letters)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Attributs publics</h2></td></tr>
<tr class="memitem:a8b6b1dc0890f5a7b6d42812d843237ec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b6b1dc0890f5a7b6d42812d843237ec"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$image_width</b> = 175</td></tr>
<tr class="memitem:a28eb8273c0f507aecc2134e0363ea514"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28eb8273c0f507aecc2134e0363ea514"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$image_height</b> = 45</td></tr>
<tr class="memitem:abfd0eea4e824b25406747bf2fba735a8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abfd0eea4e824b25406747bf2fba735a8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$image_type</b> = SI_IMAGE_PNG</td></tr>
<tr class="memitem:ad011207bf5e519f92ac54fada115571b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad011207bf5e519f92ac54fada115571b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$code_length</b> = 4</td></tr>
<tr class="memitem:a1bd56f5abecae87d3a0955420333893b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1bd56f5abecae87d3a0955420333893b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$charset</b> = 'ABCDEFGHKLMNPRSTUVWYZ23456789'</td></tr>
<tr class="memitem:aac37b38e7e3c784ecebbdecbcea4e92e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac37b38e7e3c784ecebbdecbcea4e92e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$wordlist_file</b> = '../words/words.txt'</td></tr>
<tr class="memitem:ae1c02a0285517c081204a02f1ee314fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1c02a0285517c081204a02f1ee314fe"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$use_wordlist</b> = true</td></tr>
<tr class="memitem:a867c5a5b0a61f6de8cf9004673e01c09"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a867c5a5b0a61f6de8cf9004673e01c09"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$use_gd_font</b> = false</td></tr>
<tr class="memitem:a28fe87b8a92a1fd65a63f8b1ec468a13"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28fe87b8a92a1fd65a63f8b1ec468a13"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$gd_font_file</b> = 'gdfonts/bubblebath.gdf'</td></tr>
<tr class="memitem:a8f695aa52d971c8949a3b7f70f96c58a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f695aa52d971c8949a3b7f70f96c58a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$gd_font_size</b> = 20</td></tr>
<tr class="memitem:ae4af8233dbfc6b568e1de5742ea9bffc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae4af8233dbfc6b568e1de5742ea9bffc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$ttf_file</b> = &quot;./elephant.ttf&quot;</td></tr>
<tr class="memitem:a788b695ea07bf75b5b194e7b93c2d086"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a788b695ea07bf75b5b194e7b93c2d086"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$font_size</b> = 24</td></tr>
<tr class="memitem:affc675b3693fe44058a0f42b8b45e10c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affc675b3693fe44058a0f42b8b45e10c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_angle_minimum</b> = -20</td></tr>
<tr class="memitem:a532512a01a365b048336fe187c418fc4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a532512a01a365b048336fe187c418fc4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_angle_maximum</b> = 20</td></tr>
<tr class="memitem:a789ff0179206489a9e8a6703810d1fca"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a789ff0179206489a9e8a6703810d1fca"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_x_start</b> = 8</td></tr>
<tr class="memitem:aaf1c7390866bae6d00e3c216b14cc469"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf1c7390866bae6d00e3c216b14cc469"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_minimum_distance</b> = 30</td></tr>
<tr class="memitem:ac27934c3bc97033d57e7175888ddf35f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac27934c3bc97033d57e7175888ddf35f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_maximum_distance</b> = 33</td></tr>
<tr class="memitem:ac99fb591a243e03b16187989bfdf5db9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac99fb591a243e03b16187989bfdf5db9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$image_bg_color</b> = &quot;#e3daed&quot;</td></tr>
<tr class="memitem:a9465988c007a600320fd7fa9f7103afe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9465988c007a600320fd7fa9f7103afe"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_color</b> = &quot;#ff0000&quot;</td></tr>
<tr class="memitem:a12d1df0c51b11bf8284f6425d424b0f5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a12d1df0c51b11bf8284f6425d424b0f5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$use_multi_text</b> = true</td></tr>
<tr class="memitem:aecd181b2ec38ef5430c28eaf83961462"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecd181b2ec38ef5430c28eaf83961462"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$multi_text_color</b> = &quot;#0a68dd,#f65c47,#8d32fd&quot;</td></tr>
<tr class="memitem:a29ff21c8742735babcbabb463c3275f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29ff21c8742735babcbabb463c3275f0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$use_transparent_text</b> = true</td></tr>
<tr class="memitem:a56fcc5b479f29d88326a329a909ee124"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56fcc5b479f29d88326a329a909ee124"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$text_transparency_percentage</b> = 15</td></tr>
<tr class="memitem:a745cbba7045df4cfe43319f93d979822"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a745cbba7045df4cfe43319f93d979822"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$draw_lines</b> = true</td></tr>
<tr class="memitem:a6e528e486d397f92ccf36cc3455d36d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e528e486d397f92ccf36cc3455d36d4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$line_color</b> = &quot;#80BFFF&quot;</td></tr>
<tr class="memitem:a635d0abe175d812b48d978c69f0d65e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a635d0abe175d812b48d978c69f0d65e9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$line_distance</b> = 5</td></tr>
<tr class="memitem:ac5697e065c7ce67ef966c04bc8b1cec0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5697e065c7ce67ef966c04bc8b1cec0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$line_thickness</b> = 1</td></tr>
<tr class="memitem:af05bc7daa361dae7a7232d35c993afec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af05bc7daa361dae7a7232d35c993afec"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$draw_angled_lines</b> = false</td></tr>
<tr class="memitem:ab00637654a053b6ed227d30539772a3f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab00637654a053b6ed227d30539772a3f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$draw_lines_over_text</b> = false</td></tr>
<tr class="memitem:ab72e49687de4c0a818193c3ad8802330"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab72e49687de4c0a818193c3ad8802330"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$arc_linethrough</b> = false</td></tr>
<tr class="memitem:aedbb06eb33ae15530a070dd21409040d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aedbb06eb33ae15530a070dd21409040d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$arc_line_colors</b> = &quot;#8080ff&quot;</td></tr>
<tr class="memitem:aaa9ccf6e13cbfecb82bec5987a73c581"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa9ccf6e13cbfecb82bec5987a73c581"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$audio_path</b> = './audio/'</td></tr>
<tr class="memitem:a8fce7c4676d251145ba50eef5f7b94ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8fce7c4676d251145ba50eef5f7b94ea"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$im</b></td></tr>
<tr class="memitem:a24adc877265652d2fc91fc875e729215"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24adc877265652d2fc91fc875e729215"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$bgimg</b></td></tr>
<tr class="memitem:a9ec66abda869f640635b30e610ab098e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ec66abda869f640635b30e610ab098e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$code</b></td></tr>
<tr class="memitem:a21ccc9159cd99ab4abb3b34546405fac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21ccc9159cd99ab4abb3b34546405fac"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$code_entered</b></td></tr>
<tr class="memitem:af5e59b788eb14ee1a30b1430bf720dc7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5e59b788eb14ee1a30b1430bf720dc7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$correct_code</b></td></tr>
</table>
<h2>Documentation des fonctions membres</h2>
<a class="anchor" id="a2f49c277da294dd0feefb5b8b3a97d98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::arcLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Draw arced lines over the text</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="a0e4b6929fa43ef1495fe6b42c7c25ae3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::check </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Validate the code entered by the user.</p>
<p><code> $code = $_POST['code']; if ($securimage-&gt;check($code) == false) { die("Sorry, the code entered did not match."); } else { $valid = true; } </code> </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$code</td><td>The code the user entered </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>boolean true if the code was correct, false if not </dd></dl>

</div>
</div>
<a class="anchor" id="ac171beeb6714ff77a878d174177ab7a0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::checkCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check if the user entered code was correct</p>
<p>private </p>
<dl class="section return"><dt>Renvoie</dt><dd>boolean </dd></dl>

</div>
</div>
<a class="anchor" id="a7d65189ba8813cd3f70fb416237ef9ce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::createCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a code and save to the session</p>
<dl class="section since"><dt>Depuis</dt><dd>1.0.1 </dd></dl>

</div>
</div>
<a class="anchor" id="a97e362cc5282ac6e8897ef78f4b5a2e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::doImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate and output the image</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="a1279e86e3147d9a92e62552afcec4e29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::drawLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Draw lines on the image</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="a6c524695439f090ea5d109572758e479"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::drawWord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Draw the CAPTCHA code over the image</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="aca29342599bff682e3443d9962bc1c88"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::generateCode </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$len</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a code</p>
<p>private </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramtype">int</td><td class="paramname">$len</td><td>The code length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="ad0b09cea893382c8a487f71c288eb982"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::generateWAV </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$letters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a wav file by concatenating individual files </p>
<dl class="section since"><dt>Depuis</dt><dd>1.0.1  private </dd></dl>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$letters</td><td>Array of letters to build a file from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>string WAV file data </dd></dl>

</div>
</div>
<a class="anchor" id="a8da371c4a8a8d6e1b44da63185dea647"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::getAudibleCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get WAV file data of the spoken code.<br/>
 This is appropriate for output to the browser as audio/x-wav</p>
<dl class="section since"><dt>Depuis</dt><dd>1.0.1 </dd></dl>
<dl class="section return"><dt>Renvoie</dt><dd>string WAV data </dd></dl>

</div>
</div>
<a class="anchor" id="aeaba9b8861e4e83e7fec9a384ec38f68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::getCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the captcha code</p>
<dl class="section since"><dt>Depuis</dt><dd>1.0.1 </dd></dl>
<dl class="section return"><dt>Renvoie</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a1c8db8daebf9d782cd31b683327e5ef5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::output </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Output image to the browser</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="adcb12830062e28866440d209ac75e6b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::readCodeFromFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Reads a word list file to get a code</p>
<p>private </p>
<dl class="section since"><dt>Depuis</dt><dd>1.0.2 </dd></dl>
<dl class="section return"><dt>Renvoie</dt><dd>mixed false on failure, a word on success </dd></dl>

</div>
</div>
<a class="anchor" id="a115fe97ec9c75f3b8e0d851725b6e86f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::saveData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Save the code in the session</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="a26696161d9ab41868ff467b6094b5caf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::Securimage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Class constructor.<br/>
 Because the class uses sessions, this will attempt to start a session if there is no previous one.<br/>
 If you do not start a session before calling the class, the constructor must be called before any output is sent to the browser.</p>
<p><code> $securimage = new <a class="el" href="classSecurimage.html#a26696161d9ab41868ff467b6094b5caf">Securimage()</a>; </code> </p>

</div>
</div>
<a class="anchor" id="aa1abceac31670832bf7b7ab9b5cc9036"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::setBackground </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the background of the CAPTCHA image</p>
<p>private </p>

</div>
</div>
<a class="anchor" id="aa6dae8239cdc1b89d759328a57df1856"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::show </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$background_image</em> = <code>&quot;&quot;</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a code and output the image to the browser.</p>
<p><code> &lt;?php include 'securimage.php'; $securimage = new <a class="el" href="classSecurimage.html#a26696161d9ab41868ff467b6094b5caf">Securimage()</a>; $securimage-&gt;show('bg.jpg'); ?&gt; </code></p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$background_image</td><td>The path to an image to use as the background for the CAPTCHA </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0a8197bffb3ecf71f8a97cb990da5e25"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Securimage::validate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Validate the code to the user code</p>
<p>private </p>

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>includes/securimage/securimage.php</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Généré le Jeudi Décembre 6 2012 18:54:59 pour Archi-Strasbourg par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
